package com.roin.learn.freemarker.service.impl;

import com.roin.learn.freemarker.dao.UserMapper;
import com.roin.learn.freemarker.entity.User;
import com.roin.learn.freemarker.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;

	public User selectUserById(String userId) {
		return userMapper.selectByPrimaryKey(userId);
		
	}

	public int update(User user) {
		return userMapper.updateByPrimaryKeySelective(user);
	}

}
